/***************************************************************************
 *
 *   Copyright (C) 2009 by Paul Demorest
 *   Licensed under the Academic Free License version 2.1
 *
 ***************************************************************************/

#include "Pulsar/DynamicSpectrumPlot.h"
#include "Pulsar/TimeScale.h"
#include "Pulsar/FrequencyScale.h"

#include <pairutil.h>

Pulsar::DynamicSpectrumPlot::Interface::Interface (
    DynamicSpectrumPlot* instance)
{
  if (instance)
    set_instance (instance);

  add( &DynamicSpectrumPlot::get_srange,
      &DynamicSpectrumPlot::set_srange, 
      "srange", "Range of subints to plot" );

  add( &DynamicSpectrumPlot::get_pol,
      &DynamicSpectrumPlot::set_pol,
      "pol", "Polarization to plot" );

  add( &DynamicSpectrumPlot::get_method,
      &DynamicSpectrumPlot::set_method,
      "method", "Method to use" );

  import("cmap", pgplot::ColourMap::Interface(), 
      &DynamicSpectrumPlot::get_colour_map);

  import ("x", TimeScale::Interface(), &DynamicSpectrumPlot::get_x_scale);
  import ("y", FrequencyScale::Interface(), &DynamicSpectrumPlot::get_y_scale);
}

